package com.ljf.dubbo;

import java.util.List;

/**
 * @创建人 lIUJF
 * @创建时间 2019/1/16
 * @描述:
 */
public class MyStub implements TestService {
	//注入Proxy的构造函数
	private final TestService testService;
	public MyStub(TestService testService){
		this.testService=testService;
	}


	@Override
	public String sendMessage(String message, int i){
		if(message.equals("123")){
			return "不接受";
		}else {
			message="stub msg ->"+message;
			return this.testService.sendMessage(message,i);
		}
	}

	@Override
	public String sendMessage2(String message, int i){
		return this.testService.sendMessage2(message,i);
	}

	@Override
	public List<String> mergeTest(String message){
		return null;
	}
}
